Skip to main content

selectedButton

Type

function

Summary

Returns the name of the currently highlighted button in a family.

Syntax

the selectedButton of [{card | background}] family <familyNumber>

Description

Use the selectedButton function to find out the current setting of a radio-button cluster controlled by the family property.

This function exists for compatibility with imported HyperCard stacks. You can use the radioBehavior property to cause a group consisting of buttons to behave as a radio cluster, and use the hilitedButton property to find out which button in the group is highlighted.

Parameters

NameTypeDescription

familyNumber

integer

A positive integer.

Examples

the selectedButton of family 3
put the selectedButton of family myFamily into thisButton

object: button

property: family, hilitedButton, radioBehavior

command: group

control structure: function

glossary: property, highlight, radio button, return

keyword: string, button

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?